import { defineConfig } from "@doubleshot/runner";

export default defineConfig({
  run: [
    // {
    //   cwd: "packages/python",
    //   name: "python",
    //   prefixColor: "yellow",
    //   commands: {
    //     dev: {
    //       command: "python main.py",
    //     },
    //     build:
    //       'pyinstaller --onefile  --hidden-import=cv2  --add-data "static/*;static"  --add-binary "D:wordtoolanaconda3envspy-3-12-7Libsite-packagescv2*;cv2"  main.py',
    //   },
    // },
    {
      cwd: "packages/frontend",
      name: "renderer",
      prefixColor: "blue",
      commands: {
        dev: "npm run dev",
        build: "npm run build",
      },
    },
    {
      cwd: "packages/backend",
      name: "electron",
      prefixColor: "green",
      commands: {
        dev: {
          command: "npm run dev",
          killOthersWhenExit: false,
        },
        build: "npm run build",
      },
    },
  ],
  electronBuild: {
    projectDir: "packages/backend",
    commandName: "build",
    config: "electron-builder.config.js",
  },
});
